#ifndef CLASSSECTION_H
#define CLASSSECTION_H
#include "Professor.h"
#include <QString>
#include <QDataStream>
using namespace std;

class ClassSection
{
public:
    ClassSection(int num, Professor newProfessor, bool hasProf);
    ClassSection(int num);
    ClassSection();
    int getNumber() const;
    Professor getProfessor() const;
    bool getHasProf() const;
	void setNumber(int newNumber);
    void setProfessor(Professor newProfessor);
    bool sectHasProf();

private:
	int number;
    Professor professor;
    bool hasProf;
};
QDataStream &operator<<(QDataStream &out, const ClassSection &data);
QDataStream &operator>>(QDataStream &in, ClassSection &data);
#endif
